package com.ee.bruscar.configuration.hint;

import java.util.List;

public class ModelHint implements Hint
{
	private String field;
	private String hintClass;
	
	private List<Hint> fieldHints;
	
	private String id;
	
	
	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getField()
	{
		return field;
	}

	public String getHintClassName()
	{
		Class<?> clazz;
		try
		{
			clazz = Class.forName(hintClass);
			return clazz.getSimpleName();
		}
		catch (ClassNotFoundException e)
		{
			throw new RuntimeException("can't load class from: " + hintClass );
		}
		
	}
	
	public String getName()
	{
		return field;
	}

	public void setField(String field)
	{
		this.field = field;
	}

	public String getHintClass()
	{
		return hintClass;
	}

	public void setHintClass(String hintClass)
	{
		this.hintClass = hintClass;
	}

	public List<Hint> getFieldHints()
	{
		return fieldHints;
	}

	public void setFieldHints(List<Hint> fieldHints)
	{
		this.fieldHints = fieldHints;
	}

}
